package com.rskj.controller;

import com.rskj.service.PersonService;
import com.rskj.vo.Person;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/person")
@Api(tags = "软思科技测试接口分类")
public class PersonController {

    @Autowired
    PersonService personService;


    @PostMapping("/getlist")
    @ApiOperation(value = "测试接口分类方法")
    public Object getlists() {

        List<Person> list = personService.list();
        return list;
    }

}
